Deep comparison of objects' properties of same type